package com.lct.d2_static_method;

public class Test1 {
    public static void main(String[] args) {
        //目标：理解静态方法

        //1.静态方法
        Student.printHelloWorld();

        //2.对象名，静态方法
        Student s1 = new Student();
        s1.printHelloWorld();

        //3。对象名.实例方法
        Student s2 = new Student();
        s2.score = 100;
        s2.printPass();

        //Stuent.printPass();//报错

    }
}
